#!/bin/bash
echo "void registerCommands()"
echo "{"
for netfn in 0x00 0x02 0x04 0x06 0x08 0x0A 0x0C 0x2C 0x2E 0x30 0x32 0x34 0x36 0x38 0x3A 0x3C 0x3E 
do
    NETFN_NO=`printf '0x%02x' $netfn | tr a-z A-Z`
    for cmd in `seq 0 255`;
    do
        CMD_NO=`printf '0x%02x' $cmd | tr a-z A-Z`
        echo "    register_NETFN_"$NETFN_NO"_CMD_"$CMD_NO"();"
    done
    echo ""
done
echo "}"
echo ""
